import mongoose from '../dbHelper';
import { defaultSchemaExtend, defaultSchemaOptions } from "../config/index";

const Schema = mongoose.Schema;

const AutoCoupuSchema = new Schema(Object.assign({
    shop_name: String,
    dly_user: {
        type: Schema.Types.ObjectId,
        ref: 'AiUser'
    },
    num: Number
   
}, defaultSchemaExtend), defaultSchemaOptions);

const AutoCoupu = mongoose.model('AutoCoupu', AutoCoupuSchema, 'AutoCoupus');

export default AutoCoupu